package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.UserDetailMapper;
import com.scuec.groupfive.service.UserDetailService;
import com.scuec.groupfive.vo.UserDetailVO;
import org.springframework.stereotype.Service;

@Service
public class UserDetailServiceImpl implements UserDetailService {  // 实现接口
    private final UserDetailMapper userDetailMapper;

    public UserDetailServiceImpl(UserDetailMapper userDetailMapper) {  // 参数名与字段名一致
        this.userDetailMapper = userDetailMapper;
    }

    @Override
    public UserDetailVO getUserDetail(Long userId) {  // 方法名与接口一致
        return userDetailMapper.getUserDetail(userId);  // 修正拼写错误
    }
}